//
//  ProtcolVC.m
//  MovieDate
//
//  Created by yyta on 16/4/15.
//  Copyright © 2016年 MovieDate. All rights reserved.
//

#import "ProtcolVC.h"

@interface ProtcolVC ()

@property (strong, nonatomic) IBOutlet UITextView *pTxt;

@end

@implementation ProtcolVC

- (void)initInfo
{
    [super initInfo];
    
    [_pTxt setContentOffset:CGPointMake(0, 0)];
    
    self.automaticallyAdjustsScrollViewInsets = NO;
    self.title = @"用户协议";
    UIButton *btnBack = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 60, 30)];
    [btnBack setImage:[UIImage imageNamed:@"back2"] forState:UIControlStateNormal];
    [btnBack setTitle:@"   " forState:UIControlStateNormal];
    [btnBack.titleLabel setFont:[UIFont boldSystemFontOfSize:18]];
    [btnBack setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [btnBack setTitleColor:[UIColor grayColor] forState:UIControlStateHighlighted];
    [btnBack addTarget:self action:@selector(selPopOrDismissViewController) forControlEvents:UIControlEventTouchUpInside];
    
    UIBarButtonItem *leftBarItem = [[UIBarButtonItem alloc] initWithCustomView:btnBack];
    self.navigationItem.leftBarButtonItem = leftBarItem;
    [self.view setBackgroundColor:[UIColor whiteColor]];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
